package com.example.cinemaorder.controller;

import com.example.cinemaorder.service.SysRankService;
import com.example.cinemaorder.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 高垚淼
 * @version 1.0
 */
@RestController
public class SysRankController {

    @Autowired
    SysRankService sysRankService;

    @GetMapping("/sysMovie/rankingList/1")
    public Object getRank1(){
        return new ResponseResult(200,"获取总票房榜信息成功",sysRankService.getRank1());
    }
}
